decoder : Decoder {{classname}}
decoder =
    {{#isElm018}}decode{{/isElm018}}{{#isElm019}}Decode.succeed{{/isElm019}} {{classname}}
{{#allVars}}
        |> {{>recordFieldDecoder}}
{{/allVars}}
